﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AutomaticPush.Models.DaZhang
{

    /// <summary>
    /// 大张接口参数
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class DZApiResult<T>
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public int code { get; set; }


        /// <summary>
        /// 错误信息
        /// </summary>
        public string msg { get; set; }

        /// <summary>
        /// 返回数据
        /// </summary>
        public T data { get; set; }
    }
    public class DZApiResult
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public int code { get; set; }


        /// <summary>
        /// 错误信息
        /// </summary>
        public string msg { get; set; }
    }


    public class DZGoodInfoQuery
    {
        /// <summary>
        /// 当前页（按商品查询时候不返回）
        /// </summary>
        public int curPage { set; get; }

        /// <summary>
        /// 总页数（按商品查询时候不返回）
        /// </summary>
        public int totalPage { set; get; }
        public List<DZGoods> goods { set; get; }
    }



    public class DZGoods
    {
        /// <summary>
        /// 客户编码
        /// </summary>
        public string customNo { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        public string price { get; set; }

        /// <summary>
        /// 商品编码
        /// </summary>
        public string goodsCode { get; set; }

        /// <summary>
        /// 商品条码
        /// </summary>
        public string barCode { get; set; }

    }


    /// <summary>
    /// 订单信息
    /// </summary>
    public class DZOrderInfo
    {
        public DZOrderInfo()
        {
            orderItem = new List<DZGoodsInfo>();
        }
        public string orderNo { get; set; }
        public string shopNo { get; set; }
        public string shopName { get; set; }
        public string orderType { get; set; }
        public string orderDate { get; set; }
        public string deliveryDate { get; set; }
        public string orderAddress { get; set; }
        public string contactPerson { get; set; }
        public string contactPhone { get; set; }
        public string orderTitle { get; set; }
        public string deliveryStatus { get; set; }
        public List<DZGoodsInfo> orderItem { set; get; }
    }


    public class DZGoodsInfo
    {
        public string deliveryNo { get; set; }
        public string goodsCode { get; set; }
        public string barCode { get; set; }
        public string num { get; set; }
        public string price { get; set; }
        public string deliveryNum { get; set; }
        public string deliveryStatus { get; set; }
        public string deliveryDate { get; set; }
        
    }

}
